package cn.ztydata.teachingsystem.heaven.web.dto.SpecialtyGroup;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * DailyCommentDto
 *
 * @author lyj
 * @since 2015/5/7
 */
public class DailyCommentDto {

    @Min(value = 1, message = "ID不合法")
    private Long id;

    @NotNull
    @Length(min = 1, max = 250, message = "回复内容字数1-250")
    private String content; //回复内容

    @NotNull
    private String replyName; //回复谁

    private String time; //回复时间
    private Long userId; //回复者ID
    private String userName; //回复人姓名
    private String userPhoto; //回复人头像

    @Min(value = 1, message = "日志ID不合法")
    private Long dailyId; //日志ID

    @Min(value = 0, message = "被回复Id不合法")
    private Long replyId; //被回复Id

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReplyName() {
        return replyName;
    }

    public void setReplyName(String replyName) {
        this.replyName = replyName;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public Long getDailyId() {
        return dailyId;
    }

    public void setDailyId(Long dailyId) {
        this.dailyId = dailyId;
    }

    public Long getReplyId() {
        return replyId;
    }

    public void setReplyId(Long replyId) {
        this.replyId = replyId;
    }
}
